package org.example.domain;

import java.util.Date;

/**
 * @author Jimmy
 * @version 1.0
 */
public class MyLog {
    private String logId;
    private String username;
    private String ip;
    private String time;
    private String method;
    private String action;

    public MyLog() {
    }

    public MyLog(String username, String ip, String time) {
        this.username = username;
        this.ip = ip;
        this.time = time;
    }

    public MyLog(String logId, String username, String ip, String time, String method, String action) {
        this.logId = logId;
        this.username = username;
        this.ip = ip;
        this.time = time;
        this.method = method;
        this.action = action;
    }

    public String getLogId() {
        return logId;
    }

    public void setLogId(String logId) {
        this.logId = logId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    @Override
    public String toString() {
        return "LogId{" +
                "logId='" + logId + '\'' +
                ", username='" + username + '\'' +
                ", ip='" + ip + '\'' +
                ", time=" + time +
                ", method='" + method + '\'' +
                ", action='" + action + '\'' +
                '}';
    }
}
